import http from "@/api";
import { MarketOrder } from "@/api/interface/city/cityMarket/order";
// 卡券订单模块
// 列表
export const getOrderList = (params: MarketOrder.SearchParams) => {
  return http.get<MarketOrder.Row[]>("/manager/couponOrder/list", params);
};
// 添加
export const addOrderAPI = (data: MarketOrder.AddParams) => {
  return http.post("/manager/couponOrder", data);
};
// 详情
export const getOrderDetailAPI = (params: MarketOrder.DetailParams) => {
  return http.get<MarketOrder.Detail[]>("/manager/couponOrder/detail", params);
};
// 付款
export const payOrderAPI = (data: MarketOrder.PayParams) => {
  return http.post("/manager/couponOrder/toPay", data);
};
